<?php
/**
 * route rules
 * 
 * how to construct a route rule:
 *
 *		'(^\/[REG_EXPRESSION][+$])'
 *							=>		array(
 *											'application' => '[APP_NAME]',
 *											'controller' => '[CONTROLLER_NAME]',
 *											'action' => '[ACTION_NAME]',
 *											'id' => [INT [where to get ID]],
 *										),
 */

$__route__ = array(

/**
 * index/root
 */
	'(^\/$)' 
			=>		array(
							'application' => 'default',
							'controller' => 'CONFIG_DEFAULT',
							'action' => 'CONFIG_DEFAULT',
						),
					
/**
 * [/controller/action/id/] or [/controller/action/id] 
 */
	'(^\/+[a-zA-Z-\-]+\/+[a-zA-Z-\-]+\/+[0-9]+\/|\/+[a-zA-Z-\-]+\/+[a-zA-Z-\-]+\/+[0-9]+$)'
			=>		array(
							'application' => 'default',
							'controller' => 'CURRENT',
							'action' => 'CURRENT',
							'id' => 2,
						),
					
/**
 * [/controller/action/] or [/controller/action]
 */
	'(^\/+[a-zA-Z-\-]+\/+[a-zA-Z-\-]+\/|\/+[a-zA-Z-\-]+\/+[a-zA-Z-\-]+$)' 
			=>		array(
							'application' => 'default',
							'controller' => 'CURRENT',
							'action' => 'CURRENT',
						),

/**
 * [/controller/id/] or [/controller/id]
 */
	'(^\/+[a-zA-Z-\-]+\/+[0-9]+\/|\/+[a-zA-Z-\-]+\/+[0-9]+$)' 
			=>		array(
							'application' => 'default',
							'controller' => 'CURRENT',
							'action' => 'CONFIG_DEFAULT',
							'id' => 1,
						),

/**
 * [/controller/] or [/controller]
 */					
	'(^\/+[a-zA-Z-\-]+\/|\/+[a-zA-Z-\-]+$)' 
			=>		array(
							'application' => 'default',
							'controller' => 'CURRENT',
							'action' => 'CONFIG_DEFAULT',
						),

/**
 * [/year/month/day/blog-style-url/] or [/year/month/day/blog-style-url]
 * 
 * NOTE: change the 'your_blog_controller_here' to your actual controller that will handle this URI request
 */
	'(^\/+[0-9]+\/+[0-9]+\/+[0-9]+\/+[a-zA-Z0-9-\-]+\/|\/+[0-9]+\/+[0-9]+\/+[0-9]+\/+[a-zA-Z0-9-\-]+$)' 
			=>		array(
							'application' => 'default',
							'controller' => 'your_blog_controller_here',
							'action' => 'CONFIG_DEFAULT',
						),

); // end array config

// -EOF-